﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SalePartial.Model;
using System.Data;
using System.Data.SqlClient;

namespace SalePartial.IDAL
{
    public interface IXPInquiryEvent
    {
        int Delete(Guid EventID);

        int DeleteByBuyerCompanyID(Guid BuyerCompanyID);

        int DeleteByInquiryID(Guid InquiryID);

        int DeleteByVendorCompanyID(Guid VendorCompanyID);

        int DeleteDynamic(string v_whereCondition);

        int Insert(XPInquiryEventInfo info);

        DataSet SelectAll();

        DataSet SelectByBuyerCompanyID(Guid BuyerCompanyID);

        DataSet SelectByInquiryID(Guid InquiryID);

        DataSet SelectByVendorCompanyID(Guid VendorCompanyID);

        DataSet SelectDynamic(string v_whereCondition, string v_orderByExpression);

        DataSet SelectPaged();

        SqlDataReader SelectReader(Guid EventID);

        SqlDataReader SelectReaderByBuyerCompanyID(Guid BuyerCompanyID);

        SqlDataReader SelectReaderByInquiryID(Guid InquiryID);

        SqlDataReader SelectReaderByVendorCompanyID(Guid VendorCompanyID);

        DataSet SelectSingle(Guid EventID);

        int Update(XPInquiryEventInfo info);
    }
}
